package com.tanger.common.wechat;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * 配置类
 */
public class WxPayConfig {
	// 公众号appid 
	public static String APP_ID = "wx0f27df42156f0fda";
    //微信小程序appId
	public static String WECHAT_APP_ID = "wx515fe1bbe96dbc97";
	// JSAPI接口中获取openid，审核后在公众平台开启开发模式后可查看公众号 secret
	public static String APP_SECRET = "21c29b596549e9102ffe14d18e403fe3";
									   
	//小程序secret
	public static String WECHAT_APP_SECRET = "c889ba850e0de04d27988006ac8872a0";

	// 受理商ID，身份标识 （商户号）
	public static String MCH_ID = "1609764078";
	// 商户支付密钥Key，装完整数后，配置得到。							
	public static String KEY = "231429090u2389sydhi2389yu2349823";//

	// 异步回调地址https://
	public static String ORDER_NOTIFY_URL = "https://xxxx.xxxx.com/api/account/studviporder/callStudVipOrder";

	// 字符编码
	public static String CHARTSET = "UTF-8";
	// 加密方式
	public static String SIGN_TYPE = "MD5";
	// redirect_uri，微信授权重定向地址
	public static String REDIRECT_URI;
	//证书路径
	public static String CERT_PATH = "/apiclient_cert.p12";
	
	public static String IP = "127.0.0.1";
	
	static {
		try {
			REDIRECT_URI = URLEncoder.encode("https://xxx.xxx.com/index.do", CHARTSET);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
}
